import { Module } from '@nestjs/common';
import { AuthController } from './controllers/auth.controller';
import { JwtModule } from '@nestjs/jwt';

@Module({
  imports:[
    // 必须先引入jwt
    JwtModule.register({
      global:true,
      signOptions:{expiresIn:'7d'}
    })
  ],
  controllers: [AuthController]
})

export class ApiModule {}